
// import Cookies from 'js-cookie'

const TokenKey = 'ZR-Token'
const Title = 'dynamicTitle'
export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  // console.log('set token=' + token)
  return localStorage.setItem(TokenKey, token)
}
export function setTitle(title) {
  // console.log('set token=' + token)
  return localStorage.setItem(Title, "矿井智能监测喷雾降尘集控系统")
}
export function getTitle() {
  // console.log('set token=' + token)
  return localStorage.getItem(Title)
}
export function removeToken() {
  return localStorage.removeItem(TokenKey)
}
